import request from "@/request/request.js";

export function getOrdersByUserId(userId) {
    return request({
        url:'/orders/getOrdersByUserId',
        params:{userId}
    })
}

export function addOrders(orders){
    return request({
        method:'PUT',
        url:'/orders/addOrders',
        data:orders
    })
}
